﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>TrafficLight: Light Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                TrafficLight: Light Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">Light Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Light" -->
<p><code>#include &lt;<a class="el" href="_light_8h_source.html">Light.h</a>&gt;</code></p>

<p><a href="class_light-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#aeb5df09a25a32f19fdffa761268ba24f">Light</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#ad0e59fad13bb6cfadc25b2c477e9ddc7">~Light</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a169c90d989c1d0563e105d96f0bc38e5">getRedDuration</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a4b8ae7b1261037bf4648b36881982e33">getYellowDuration</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a20498e25593c7fa464c2cecde4db4953">getGreenDuration</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a9a339fff1b62334f4c7364889747e4a2">getMaxDuration</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#ac0232ef304f8989db30c3fa4c5853863">TurnOnRed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a80b552e6a360f0734aefbfd3dc817b32">TurnOffRed</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a8ca3fdbd2c5b9bf8b109bacb5345ca41">TurnOnYellow</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a483c8d566de37761c6217a58f7753ef4">TurnOffYellow</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#af35b9286a07f998cd8af09e2533a7aaf">TurnOnGreen</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a81f0d0ea11d88de3bacf8fd963989e70">TurnOffGreen</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a14e9185e36c62bb9cc5815d48bdaa94a">m_lRedDuration</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a5c41a52fc7c4d710eb87eb67d11e47d9">m_lYellowDuration</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a123c287ae6507c8fa898aaca3f775ecc">m_lGreenDuration</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_light.html#a6969a9b6c651e26c2a1a0bfe6ff9e8dd">m_lMaxDuration</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_light_8h_source.html#l00006">6</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aeb5df09a25a32f19fdffa761268ba24f"></a><!-- doxytag: member="Light::Light" ref="aeb5df09a25a32f19fdffa761268ba24f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Light::Light </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00008">8</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">             :
  <a class="code" href="class_light.html#a14e9185e36c62bb9cc5815d48bdaa94a">m_lRedDuration</a>(1000),
  <a class="code" href="class_light.html#a5c41a52fc7c4d710eb87eb67d11e47d9">m_lYellowDuration</a>(1000),
  <a class="code" href="class_light.html#a123c287ae6507c8fa898aaca3f775ecc">m_lGreenDuration</a>(1000),
  <a class="code" href="class_light.html#a6969a9b6c651e26c2a1a0bfe6ff9e8dd">m_lMaxDuration</a>(3500)
{
}
</pre></div>
</div>
</div>
<a class="anchor" id="ad0e59fad13bb6cfadc25b2c477e9ddc7"></a><!-- doxytag: member="Light::~Light" ref="ad0e59fad13bb6cfadc25b2c477e9ddc7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Light::~Light </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00016">16</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a20498e25593c7fa464c2cecde4db4953"></a><!-- doxytag: member="Light::getGreenDuration" ref="a20498e25593c7fa464c2cecde4db4953" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long Light::getGreenDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00015">15</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>
<div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> <a class="code" href="class_light.html#a123c287ae6507c8fa898aaca3f775ecc">m_lGreenDuration</a>;}
</pre></div>
</div>
</div>
<a class="anchor" id="a9a339fff1b62334f4c7364889747e4a2"></a><!-- doxytag: member="Light::getMaxDuration" ref="a9a339fff1b62334f4c7364889747e4a2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long Light::getMaxDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00016">16</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>
<div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> <a class="code" href="class_light.html#a6969a9b6c651e26c2a1a0bfe6ff9e8dd">m_lMaxDuration</a>;}
</pre></div>
</div>
</div>
<a class="anchor" id="a169c90d989c1d0563e105d96f0bc38e5"></a><!-- doxytag: member="Light::getRedDuration" ref="a169c90d989c1d0563e105d96f0bc38e5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long Light::getRedDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00013">13</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>
<div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> <a class="code" href="class_light.html#a14e9185e36c62bb9cc5815d48bdaa94a">m_lRedDuration</a>;}
</pre></div>
</div>
</div>
<a class="anchor" id="a4b8ae7b1261037bf4648b36881982e33"></a><!-- doxytag: member="Light::getYellowDuration" ref="a4b8ae7b1261037bf4648b36881982e33" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long Light::getYellowDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00014">14</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>
<div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> <a class="code" href="class_light.html#a5c41a52fc7c4d710eb87eb67d11e47d9">m_lYellowDuration</a>;}
</pre></div>
</div>
</div>
<a class="anchor" id="a81f0d0ea11d88de3bacf8fd963989e70"></a><!-- doxytag: member="Light::TurnOffGreen" ref="a81f0d0ea11d88de3bacf8fd963989e70" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Light::TurnOffGreen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00045">45</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  QLOG_INFO();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a80b552e6a360f0734aefbfd3dc817b32"></a><!-- doxytag: member="Light::TurnOffRed" ref="a80b552e6a360f0734aefbfd3dc817b32" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Light::TurnOffRed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00025">25</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  QLOG_INFO();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a483c8d566de37761c6217a58f7753ef4"></a><!-- doxytag: member="Light::TurnOffYellow" ref="a483c8d566de37761c6217a58f7753ef4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Light::TurnOffYellow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00035">35</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  QLOG_INFO();
}
</pre></div>
</div>
</div>
<a class="anchor" id="af35b9286a07f998cd8af09e2533a7aaf"></a><!-- doxytag: member="Light::TurnOnGreen" ref="af35b9286a07f998cd8af09e2533a7aaf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Light::TurnOnGreen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00040">40</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  QLOG_INFO();
}
</pre></div>
</div>
</div>
<a class="anchor" id="ac0232ef304f8989db30c3fa4c5853863"></a><!-- doxytag: member="Light::TurnOnRed" ref="ac0232ef304f8989db30c3fa4c5853863" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Light::TurnOnRed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00020">20</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  QLOG_INFO();
}
</pre></div>
</div>
</div>
<a class="anchor" id="a8ca3fdbd2c5b9bf8b109bacb5345ca41"></a><!-- doxytag: member="Light::TurnOnYellow" ref="a8ca3fdbd2c5b9bf8b109bacb5345ca41" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Light::TurnOnYellow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8cpp_source.html#l00030">30</a> of file <a class="el" href="_light_8cpp_source.html">Light.cpp</a>.</p>
<div class="fragment"><pre class="fragment">{
  QLOG_INFO();
}
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a123c287ae6507c8fa898aaca3f775ecc"></a><!-- doxytag: member="Light::m_lGreenDuration" ref="a123c287ae6507c8fa898aaca3f775ecc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="class_light.html#a123c287ae6507c8fa898aaca3f775ecc">Light::m_lGreenDuration</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00030">30</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>

</div>
</div>
<a class="anchor" id="a6969a9b6c651e26c2a1a0bfe6ff9e8dd"></a><!-- doxytag: member="Light::m_lMaxDuration" ref="a6969a9b6c651e26c2a1a0bfe6ff9e8dd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="class_light.html#a6969a9b6c651e26c2a1a0bfe6ff9e8dd">Light::m_lMaxDuration</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00031">31</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>

</div>
</div>
<a class="anchor" id="a14e9185e36c62bb9cc5815d48bdaa94a"></a><!-- doxytag: member="Light::m_lRedDuration" ref="a14e9185e36c62bb9cc5815d48bdaa94a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="class_light.html#a14e9185e36c62bb9cc5815d48bdaa94a">Light::m_lRedDuration</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00028">28</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5c41a52fc7c4d710eb87eb67d11e47d9"></a><!-- doxytag: member="Light::m_lYellowDuration" ref="a5c41a52fc7c4d710eb87eb67d11e47d9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long <a class="el" href="class_light.html#a5c41a52fc7c4d710eb87eb67d11e47d9">Light::m_lYellowDuration</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_light_8h_source.html#l00029">29</a> of file <a class="el" href="_light_8h_source.html">Light.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_light_8h_source.html">Light.h</a></li>
<li><a class="el" href="_light_8cpp_source.html">Light.cpp</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
